﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AuctionDataLayer;
using System.Transactions;

namespace GurobiAutoCalculator
{
    class Program
    {
        static void Main(string[] args)
        {
            try
            {
                using (var transaction = new TransactionScope())
                {
                    GurobiCalculations cal = new GurobiCalculations();
                    cal.DayliCalculations();
                    transaction.Complete();
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine("Exception Trown!");
                Console.WriteLine("Source:");
                Console.WriteLine(ex.Source);
                Console.WriteLine("StackTrace:");
                Console.WriteLine(ex.StackTrace);
            }
            Console.ReadLine();
        }
    }
}
